package com.zhike.common.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

@AllArgsConstructor
@Data
public class PhoneCodeDTO {

    @ApiModelProperty(value = "手机号", required = true)
    @NotNull(message = "缺少phone参数")
    @NotEmpty(message = "phone不允许为空")
    private String phone;

    @ApiModelProperty(value = "短信模板key", required = true, example = "login(登录时发送) register(注册时发送) password_change(重置登录密码时发送) tel_change(用户修改手机号码时发送)")
    @NotNull(message = "缺少modelKey参数")
    @NotEmpty(message = "modelKey不允许为空")
    private String modelKey;
}
